type net/http.exactSig
22 uses
net/http (current package)
sniff.go#L89: &exactSig{[]byte("%PDF-"), "application/pdf"},
sniff.go#L90: &exactSig{[]byte("%!PS-Adobe-"), "application/postscript"},
sniff.go#L115: &exactSig{[]byte("\x00\x00\x01\x00"), "image/x-icon"},
sniff.go#L116: &exactSig{[]byte("\x00\x00\x02\x00"), "image/x-icon"},
sniff.go#L117: &exactSig{[]byte("BM"), "image/bmp"},
sniff.go#L118: &exactSig{[]byte("GIF87a"), "image/gif"},
sniff.go#L119: &exactSig{[]byte("GIF89a"), "image/gif"},
sniff.go#L125: &exactSig{[]byte("\x89PNG\x0D\x0A\x1A\x0A"), "image/png"},
sniff.go#L126: &exactSig{[]byte("\xFF\xD8\xFF"), "image/jpeg"},
sniff.go#L164: &exactSig{[]byte("\x1A\x45\xDF\xA3"), "video/webm"},
sniff.go#L174: &exactSig{[]byte("\x00\x01\x00\x00"), "font/ttf"},
sniff.go#L175: &exactSig{[]byte("OTTO"), "font/otf"},
sniff.go#L176: &exactSig{[]byte("ttcf"), "font/collection"},
sniff.go#L177: &exactSig{[]byte("wOFF"), "font/woff"},
sniff.go#L178: &exactSig{[]byte("wOF2"), "font/woff2"},
sniff.go#L181: &exactSig{[]byte("\x1F\x8B\x08"), "application/x-gzip"},
sniff.go#L182: &exactSig{[]byte("PK\x03\x04"), "application/zip"},
sniff.go#L189: &exactSig{[]byte("Rar!\x1A\x07\x00"), "application/x-rar-compressed"}, // RAR v1.5-v4.0
sniff.go#L190: &exactSig{[]byte("Rar!\x1A\x07\x01\x00"), "application/x-rar-compressed"}, // RAR v5+
sniff.go#L192: &exactSig{[]byte("\x00\x61\x73\x6D"), "application/wasm"},
sniff.go#L197: type exactSig struct {
sniff.go#L202: func (e *exactSig) match(data []byte, firstNonWS int) string {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |